package sprachkern;

import javax.swing.JOptionPane;

public class Standarddialoge {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// MessageDialog
		//JOptionPane.showMessageDialog(null, "Text");
		//JOptionPane.showMessageDialog(null, "Text", "Titel", JOptionPane.WARNING_MESSAGE);

		// ConfirmDialog
		/*int antwort = 0;
		antwort = JOptionPane.showConfirmDialog(null, "Frage");
		System.out.println(antwort);
		switch (antwort){
		case JOptionPane.YES_OPTION:
			System.out.println("YES");
			break;
		case JOptionPane.NO_OPTION:
			System.out.println("NO");
			break;
		case JOptionPane.CANCEL_OPTION:
			System.out.println("CANCEL");
			break;
		case JOptionPane.CLOSED_OPTION:
			System.out.println("CLOSED");
			break;
		default:
			System.out.println("DEFAULT");
		}*/
		
		// InputDialog
		String str = JOptionPane.showInputDialog("Text"); // Keine Eingabe: null
		System.out.println(str);
	}

}
